package com.zhixiang.xaec.entity.system;


import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.zhixiang.xaec.entity.BaseEntity;


@Entity
@Table(name = "sys_StaffPosition")
@Comment("人员职位")
public class StaffPosition extends BaseEntity
{
    @Comment("人员")
    @ManyToOne
    @JoinColumn(name="staff_id")
    private Staff staff;
    @Comment("职位")
    @ManyToOne
    @JoinColumn(name="position_id")
    private Position position; 
    @Comment("是否主职位")
    private short isMain;
    public Staff getStaff()
    {
        return staff;
    }
    public void setStaff(Staff staff)
    {
        this.staff = staff;
    }
    public Position getPosition()
    {
        return position;
    }
    public void setPosition(Position position)
    {
        this.position = position;
    }
    public short getIsMain()
    {
        return isMain;
    }
    public void setIsMain(short isMain)
    {
        this.isMain = isMain;
    }
    
    
}
